﻿@using WebEntities
@model PP_Product

@{
    ViewBag.Title = "Products";
    Layout = "~/Areas/EN/Views/Shared/_EnDefLayout.cshtml";
}

<div class="subleft">
    <h2>
        <img src="/Images/subicon02.jpg" alt="" />
        <span>Catalogue</span>
    </h2>
    @Html.Action("LeftMenu", new { cataId = (Model == null) ? 0 : (Model.ProdCataID ?? 0) })
</div>
<div class="subright">
@if (Model != null)
{
    <div class="pagepath" style="text-align:left">
        <a href="/"><img src="/Images/homeicon.jpg" alt="首页" /></a> &gt; 
        <a href="/en/products">Product Center</a> &gt; 
        <a href="/en/products/index/@ViewBag.ThisCataID">@ViewBag.ThisCataName</a> &gt; 
        <a href="/en/products/details/@Model.ProductID">@Model.ProductName</a>
    </div>
    <div class="midcontent">
        <div class="prodimglist">
            <div id="hidimgs">
            @{
                List<PP_ProductImg> pimglist = ViewBag.ProdImgList as List<PP_ProductImg>;
                foreach (var pimg in pimglist)
                {
                    <img src="@pimg.ImgUrl" alt="@pimg.Title" />
                }
                PP_ProductImg img1 = pimglist.FirstOrDefault();
                string imgpath1 = img1 == null ? string.Empty : img1.ImgUrl;
            }
            </div>
            <div class="prodimg"><img src="@imgpath1" /></div>
            <div class="previmg"></div>
            <div class="pimgs_showbar">
                <ul>
                @foreach (var pimg in pimglist)
                {
                    <li><img src="@pimg.ImgUrl" alt="@pimg.Title" /></li>
                }
                </ul>
            </div>
            <div class="nextimg"></div>
            <div class="cls"></div>
        </div>
        <div class="prodinfo">
            <h1 class="prodname">@Model.ProductName</h1>
            <ul>
                <li>
                    <span class="leftitle">Brand</span>
                    <span class="rightdescr">@(Model.Brand)</span>
                </li>
                <li>
                    <span class="leftitle">Level</span>
                    <span class="rightdescr">@(Model.ProductLevel)</span>
                </li>
                <li>
                    <span class="leftitle">Pack Spec</span>
                    <span class="rightdescr">@(Model.Package)</span>
                </li>
                <li>
                    <span class="leftitle">Guarantee Period</span>
                    <span class="rightdescr">@(Model.ExpDate)</span>
                </li>
                <li>
                    <span class="leftitle">Function</span>
                    <span class="rightdescr">@(Model.AppDomain)</span>
                </li>
                <li>
                    <span class="leftitle">Storage</span>
                    <span class="rightdescr">@(Model.StoreCondition)</span>
                </li>
            </ul>
        </div>
        <div class="cls"></div>
        <div class="prodescr">@Html.Raw(Server.HtmlDecode(Model.Description))</div>
    </div>
}
</div>
<div class="cls"></div>
